import { _decorator, Component, Node } from "cc"
import { cpuRenderingContext } from "./webCpuRender/webglImpl/CpuRenderingContext"
const { ccclass, property } = _decorator

@ccclass("entry")
export class entry extends Component {
    start() {
        let win: any = window
        if (win.cpuRenderCanvas) {
            cpuRenderingContext.customContextInit(
                <HTMLCanvasElement>document.getElementById(win.cpuRenderCanvas)
            )
        } else {
            console.error("没有cpuRender 的canvas")
        }
    }

    update(deltaTime: number) {}
}
